// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_activity.p_view;

import android.widget.Scroller;

// Referenced classes of package com.nnee.p_pr.p_activity.view:
//            NPullToFreshContainer

class o
    implements Runnable
{

    public cls_o(NPullToFreshContainer npulltofreshcontainer)
    {
        a = npulltofreshcontainer;
        super();
        d = new Scroller(npulltofreshcontainer.getContext());
    }

    private void a()
    {
        a.removeCallbacks(this);
    }

    public void a(int i, int j)
    {
        a();
        c = 0;
        d.startScroll(0, 0, -i, 0, j);
        NPullToFreshContainer.a(a, true);
        a.post(this);
    }

    public void run()
    {
        if(d.computeScrollOffset())
        {
            NPullToFreshContainer.a(a, c - d.getCurrX());
            a.invalidate();
            c = d.getCurrX();
            a.removeCallbacks(this);
            a.post(this);
        } else
        {
            NPullToFreshContainer.a(a, false);
        }
    }

    final NPullToFreshContainer a;
    private boolean b;
    private int c;
    private Scroller d;
}
